1 import os
2 import pickle
3 import sys
4 import os
5 from subprocess import call
6
7 import sys
8
9 try:
10 from Tkinter import *
11 except ImportError:
12 from tkinter import *
13
14 try:
15 import ttk
16 py3 = False
17 except ImportError:
18 import tkinter.ttk as ttk
19 py3 = True
20 details_list=[]
21
22
23 def file_save():
24 NAME_PRO = details_list[0]
25 ADDRESS_PRO = details_list[1]
26 MOBILE_NO_PRO = details_list[2]
27 ROOM_NO_PRO = details_list[3]
28 PRICE_PRO = details_list[4]
29 f = open("hotel.dat", "ab")
30 a=save(NAME_PRO,ADDRESS_PRO,MOBILE_NO_PRO,ROOM_NO_PRO,PRICE_PRO)
31 pickle.dump(a,f,protocol=2)
32 f.close()
33 listq=[str(NAME_PRO),str(ADDRESS_PRO),str(MOBILE_NO_PRO),str(ROOM_NO_PRO),str(PRICE_PRO)]
34 myVars = {'A':NAME_PRO,"B":ADDRESS_PRO,"C":MOBILE_NO_PRO,"D":ROOM_NO_PRO,"E":PRICE_PRO }
35
36 fo=open("receipt.txt","w+")
37 for h in range(0,5):
38 fo.write(listq[h]+"\r\n")
39 fo.close()
40 call(["python", "recipt.py"])
41 restart_program()
42
43
44
45
46
47
48 u = list()
49 Delux = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
50 Semi_Delux = (11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25)
51 General = (26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45)
52 Joint_Room = (46, 47, 48, 49, 50, 46, 47, 48, 49, 50)
53 m = [9]
54 G = []
55 def restart_program():
56 python = sys.executable
57 os.execl(python, python, * sys.argv)
58
59
60 class save:
61 def __init__(self,NAME_PRO,ADDRESS_PRO,MOBILE_NO_PRO,ROOM_NO_PRO,PRICE_PRO):
62 self.name=NAME_PRO
63 self.address=ADDRESS_PRO
64 self.mobile_no=MOBILE_NO_PRO
65 self.room_no=ROOM_NO_PRO
66 self.price=PRICE_PRO
67
68
69
70 class HOTEL_MANGMENT_checkin:
71
72
73 def __init__(self):
74 self.NAME=""
75 self.ADDERESS=""
76 self.MOBILE=""
77 self.DAYS=0
78 self.price=0
79 self.room=0
80
81
82
83
84
85 def chk_name():
86 while True:
87
88 self.k = str(self.name.get())
89
90 a = self.k.isdigit()
91 if len(self.k) != 0 and a != True:
92 self.NAME=self.k
93 self.Text1.insert(INSERT, "name has been inputed""\n")
94 break
95 else:
96 self.Text1.insert(INSERT, "invalid input please input a valid name""\n")
97
98 break
99
100 def chk_add():
101 while True:
102 self.g = str(self.addr.get())
103
104
105 ak = self.g.isdigit()
106 if len(self.g)!= 0 and ak!=True:
107 self.ADDERESS=self.g
108 self.Text1.insert(INSERT, "address has been inputed""\n")
109 break
110 else:
111 self.Text1.insert(INSERT, "invalid input please input a valid address""\n")
112
113 break
114
115 def chk_mo():
116 while True:
117
118 self.h = str(self.mobile.get())
119 if self.h.isdigit() == True and len(self.h) != 0 and len(self.h) == 10:
120 self.MOBILE = self.h
121 self.Text1.insert(INSERT, "mobile number has been inputed""\n")
122 break
123 else:
124 self.Text1.insert(INSERT, "invalid input please input a valid mobile number""\n")
125 break
126
127 def chk_day():
128 while True:
129
130 self.l = str(self.days.get())
131
132 if self.l.isdigit() == True and len(self.l) != 0:
133 self.DAYS = int(self.l)
134 self.Text1.insert(INSERT, "days has been inputed""\n")
135 break
136 else:
137 self.Text1.insert(INSERT, "invalid input ""\n")
138 break
139
140 def enter(self):
141 self.name = self.NAME
142 self.address = self.ADDERESS
143 self.mobile_no = self.MOBILE
144 self.no_of_days = int(self.DAYS)
145
146 def tor(self):
147
148 if self.ch == 1:
149 self.price = self.price + (30 * self.no_of_days)
150 m[0] = 1
151 elif self.ch == 2:
152 self.price = self.price + (45 * self.no_of_days)
153 m[0] = 2
154 elif self.ch == 3:
155 self.price = self.price + (76 * self.no_of_days)
156 m[0] = 3
157 elif self.ch == 4:
158 self.price = self.price + (29 * self.no_of_days)
159 m[0] = 4
160
161 def payment_option(self):
162 op = self.p
163 if op == 1:
164 self.Text1.insert(INSERT, "no discount""\n")
165 elif op == 2:
166 self.price = self.price - ((self.price * 10) / 100)
167 self.Text1.insert(INSERT, "10% discount""\n")
168
169 def bill(self):
170
171 if m[0] == 1:
172 a = Delux
173 elif m[0] == 2:
174 a = Semi_Delux
175 elif m[0] == 3:
176 a = General
177 elif m[0] == 4:
178 a = Joint_Room
179
180 G = []
181 f2 = open("hotel.dat", "rb")
182 try:
183 while True:
184 s = pickle.load(f2)
185
186 k = s.room_no
187 G.append(k)
188 continue
189
190 except EOFError:
191 pass
192
193 for r in a:
194 if r not in G:
195 self.room = r
196 break
197 else:
198 continue
199 self.room = r
200 f2.close()
201
202 details_list.append(self.name)
203 details_list.append(self.address)
204 details_list.append(self.mobile_no)
205 details_list.append(self.room)
206 details_list.append(self.price)
207
208
209
210
211 file_save()
212
213
214
215 def submit_clicked():
216 if self.var1.get()==1 and self.var2.get()==0 and self.var3.get()==0 and self.var4.get()==0 and self.var5.get()==1 and self.var6.get()==0:
217 self.ch=1
218 self.p=2
219
220 enter(self)
221 tor(self)
222 payment_option(self)
223 bill(self)
224
225
226 elif self.var1.get() == 1 and self.var2.get() == 0 and self.var3.get() == 0 and self.var4.get() == 0 and self.var5.get() == 0 and self.var6.get() == 1:
227 self.ch = 1
228 self.p = 1
229
230 enter(self)
231 tor(self)
232 payment_option(self)
233 bill(self)
234 elif self.var1.get() == 0 and self.var2.get() == 1 and self.var3.get() == 0 and self.var4.get() == 0 and self.var5.get() == 0 and self.var6.get() == 1:
235 self.ch = 2
236 self.p = 1
237
238 enter(self)
239 tor(self)
240 payment_option(self)
241 bill(self)
242 elif self.var1.get() == 0 and self.var2.get() == 1 and self.var3.get() == 0 and self.var4.get() == 0 and self.var5.get() == 1 and self.var6.get() ==0 :
243 self.ch = 2
244 self.p = 2
245
246 enter(self)
247 tor(self)
248 payment_option(self)
249 bill(self)
250 elif self.var1.get() == 0 and self.var2.get() == 0 and self.var3.get() == 1 and self.var4.get() == 0 and self.var5.get() == 0 and self.var6.get() == 1:
251 self.ch = 3
252 self.p = 1
253
254 enter(self)
255 tor(self)
256 payment_option(self)
257 bill(self)
258 elif self.var1.get() == 0 and self.var2.get() == 0 and self.var3.get() == 1 and self.var4.get() == 0 and self.var5.get() == 1 and self.var6.get() == 0:
259 self.ch = 3
260 self.p = 2
261
262 enter(self)
263 tor(self)
264 payment_option(self)
265 bill(self)
266
267 elif self.var1.get() == 0 and self.var2.get() == 0 and self.var3.get() == 0 and self.var4.get() == 1 and self.var5.get() == 0 and self.var6.get() == 1:
268 self.ch = 4
269 self.p = 1
270
271 enter(self)
272 tor(self)
273 payment_option(self)
274 bill(self)
275 elif self.var1.get() == 0 and self.var2.get() == 0 and self.var3.get() == 0 and self.var4.get() == 1 and self.var5.get() == 1 and self.var6.get() == 0:
276 self.ch = 4
277 self.p = 2
278
279 enter(self)
280 tor(self)
281 payment_option(self)
282 bill(self)
283
284 else:
285 self.Text1.insert(INSERT, "invalid choice please input a valid choice""\n")
286
287
288
289
290
291 root = Tk()
292
293
294 _bgcolor = '#ffffff' # X11 color: 'white'
295 _fgcolor = '#000000' # X11 color: 'black'
296 _compcolor = '#ffffff' # X11 color: 'white'
297 _ana1color = '#ffffff' # X11 color: 'white'
298 _ana2color = '#ffffff' # X11 color: 'white'
299 font10 = "-family {Courier New} -size 10 -weight normal -slant" \
300 " roman -underline 0 -overstrike 0"
301 font11 = "-family {Segoe UI} -size 30 -weight bold -slant " \
302 "roman -underline 0 -overstrike 0"
303 font12 = "-family {Segoe UI} -size 18 -weight bold -slant " \
304 "roman -underline 0 -overstrike 0"
305 font13 = "-family {Segoe UI} -size 17 -weight bold -slant " \
306 "roman -underline 0 -overstrike 0"
307 font14 = "-family {Segoe UI} -size 16 -weight bold -slant " \
308 "roman -underline 0 -overstrike 0"
309 font15 = "-family {Segoe UI} -size 19 -weight bold -slant " \
310 "roman -underline 0 -overstrike 0"
311 font16 = "-family {Segoe UI} -size 15 -weight bold -slant " \
312 "roman -underline 0 -overstrike 0"
313 font9 = "-family {Segoe UI} -size 9 -weight normal -slant " \
314 "roman -underline 0 -overstrike 0"
315
316 root.geometry("1069x742")
317 root.title("Hotel Management System")
318 root.configure(background="#ffffff")
319 root.configure(highlightbackground="#ffffff")
320 root.configure(highlightcolor="black")
321
322 self.Text1 = Text(root)
323 self.Text1.place(relx=0.03, rely=0.65, relheight=0.29, relwidth=0.93)
324 self.Text1.configure(background="white")
325 self.Text1.configure(font=font9)
326 self.Text1.configure(foreground="black")
327 self.Text1.configure(highlightbackground="#ffffff")
328 self.Text1.configure(highlightcolor="black")
329 self.Text1.configure(insertbackground="black")
330 self.Text1.configure(selectbackground="#e6e6e6")
331 self.Text1.configure(selectforeground="black")
332 self.Text1.configure(width=994)
333 self.Text1.configure(wrap=WORD)
334
335 self.Frame1 = Frame(root)
336 self.Frame1.place(relx=0.03, rely=0.05, relheight=0.12, relwidth=0.93)
337 self.Frame1.configure(relief=GROOVE)
338 self.Frame1.configure(borderwidth="2")
339 self.Frame1.configure(relief=GROOVE)
340 self.Frame1.configure(background="#ffffff")
341 self.Frame1.configure(highlightbackground="#ffffff")
342 self.Frame1.configure(highlightcolor="black")
343 self.Frame1.configure(width=995)
344
345 self.Message1 = Message(self.Frame1)
346 self.Message1.place(relx=0.04, rely=0.11, relheight=0.84, relwidth=0.5)
347 self.Message1.configure(background="#ffffff")
348 self.Message1.configure(font=font12)
349 self.Message1.configure(foreground="#000000")
350 self.Message1.configure(highlightbackground="#ffffff")
351 self.Message1.configure(highlightcolor="black")
352 self.Message1.configure(text='''Hotel Managment System''')
353 self.Message1.configure(width=496)
354
355 self.Message2 = Message(self.Frame1)
356 self.Message2.place(relx=0.52, rely=0.19, relheight=0.74, relwidth=0.07)
357 self.Message2.configure(background="#ffffff")
358 self.Message2.configure(font=font11)
359 self.Message2.configure(foreground="#000000")
360 self.Message2.configure(highlightbackground="#ffffff")
361 self.Message2.configure(highlightcolor="black")
362 self.Message2.configure(text=''':''')
363 self.Message2.configure(width=66)
364
365 self.Message3 = Message(self.Frame1)
366 self.Message3.place(relx=0.57, rely=0.11, relheight=0.79, relwidth=0.35)
367 self.Message3.configure(background="#ffffff")
368 self.Message3.configure(font=font11)
369 self.Message3.configure(foreground="#000000")
370 self.Message3.configure(highlightbackground="#ffffff")
371 self.Message3.configure(highlightcolor="black")
372 self.Message3.configure(text='''CHECK IN''')
373 self.Message3.configure(width=347)
374
375 self.menubar = Menu(root,font=font9,bg=_bgcolor,fg=_fgcolor)
376 root.configure(menu = self.menubar)
377
378
379
380 self.Frame2 = Frame(root)
381 self.Frame2.place(relx=0.03, rely=0.18, relheight=0.46, relwidth=0.93)
382 self.Frame2.configure(relief=GROOVE)
383 self.Frame2.configure(borderwidth="2")
384 self.Frame2.configure(relief=GROOVE)
385 self.Frame2.configure(background="#ffffff")
386 self.Frame2.configure(highlightbackground="#ffffff")
387 self.Frame2.configure(highlightcolor="black")
388 self.Frame2.configure(width=995)
389
390 self.Label3 = Label(self.Frame2)
391 self.Label3.place(relx=0.05, rely=0.03, height=47, width=289)
392 self.Label3.configure(activebackground="#ffffff")
393 self.Label3.configure(activeforeground="black")
394 self.Label3.configure(background="#ffffff")
395 self.Label3.configure(disabledforeground="#bfbfbf")
396 self.Label3.configure(font=font12)
397 self.Label3.configure(foreground="#000000")
398 self.Label3.configure(highlightbackground="#ffffff")
399 self.Label3.configure(highlightcolor="black")
400 self.Label3.configure(text='''ENTER YOUR NAME''')
401
402 self.Label4 = Label(self.Frame2)
403 self.Label4.place(relx=0.045, rely=0.29, height=47, width=329)
404 self.Label4.configure(activebackground="#ffffff")
405 self.Label4.configure(activeforeground="black")
406 self.Label4.configure(background="#ffffff")
407 self.Label4.configure(disabledforeground="#bfbfbf")
408 self.Label4.configure(font=font12)
409 self.Label4.configure(foreground="#000000")
410 self.Label4.configure(highlightbackground="#ffffff")
411 self.Label4.configure(highlightcolor="black")
412 self.Label4.configure(text='''ENTER YOUR NUMBER''')
413
414
415
416 self.Entry3 = Entry(self.Frame2)
417 self.name=StringVar()
418 self.Entry3.place(relx=0.47, rely=0.05,height=34, relwidth=0.43)
419 self.Entry3.configure(background="white")
420 self.Entry3.configure(disabledforeground="#bfbfbf")
421 self.Entry3.configure(font=font10)
422 self.Entry3.configure(foreground="#000000")
423 self.Entry3.configure(highlightbackground="#ffffff")
424 self.Entry3.configure(highlightcolor="black")
425 self.Entry3.configure(insertbackground="black")
426 self.Entry3.configure(selectbackground="#e6e6e6")
427 self.Entry3.configure(selectforeground="black")
428 self.Entry3.configure(textvariable=self.name)
429
430
431 self.Entry4 = Entry(self.Frame2)
432 self.mobile=StringVar()
433 self.Entry4.place(relx=0.47, rely=0.31,height=34, relwidth=0.43)
434 self.Entry4.configure(background="white")
435 self.Entry4.configure(disabledforeground="#bfbfbf")
436 self.Entry4.configure(font=font10)
437 self.Entry4.configure(foreground="#000000")
438 self.Entry4.configure(highlightbackground="#ffffff")
439 self.Entry4.configure(highlightcolor="black")
440 self.Entry4.configure(insertbackground="black")
441 self.Entry4.configure(selectbackground="#e6e6e6")
442 self.Entry4.configure(selectforeground="black")
443 self.Entry4.configure(textvariable=self.mobile)
444
445
446 self.Entry5 = Entry(self.Frame2)
447 self.addr = StringVar()
448 self.Entry5.place(relx=0.47, rely=0.18,height=34, relwidth=0.43)
449 self.Entry5.configure(background="white")
450 self.Entry5.configure(disabledforeground="#bfbfbf")
451 self.Entry5.configure(font=font10)
452 self.Entry5.configure(foreground="#000000")
453 self.Entry5.configure(highlightbackground="#ffffff")
454 self.Entry5.configure(highlightcolor="black")
455 self.Entry5.configure(insertbackground="black")
456 self.Entry5.configure(selectbackground="#e6e6e6")
457 self.Entry5.configure(selectforeground="black")
458 self.Entry5.configure(textvariable=self.addr)
459
460 self.Label5 = Label(self.Frame2)
461 self.Label5.place(relx=0.045, rely=0.16, height=47, width=334)
462 self.Label5.configure(activebackground="#ffffff")
463 self.Label5.configure(activeforeground="black")
464 self.Label5.configure(background="#ffffff")
465 self.Label5.configure(disabledforeground="#bfbfbf")
466 self.Label5.configure(font=font12)
467 self.Label5.configure(foreground="#000000")
468 self.Label5.configure(highlightbackground="#ffffff")
469 self.Label5.configure(highlightcolor="black")
470 self.Label5.configure(text='''ENTER YOUR ADDRESS''')
471
472 self.Label6 = Label(self.Frame2)
473 self.Label6.place(relx=0.32, rely=0.5, height=48, width=296)
474 self.Label6.configure(activebackground="#ffffff")
475 self.Label6.configure(activeforeground="black")
476 self.Label6.configure(background="#ffffff")
477 self.Label6.configure(disabledforeground="#bfbfbf")
478 self.Label6.configure(font=font13)
479 self.Label6.configure(foreground="#000000")
480 self.Label6.configure(highlightbackground="#ffffff")
481 self.Label6.configure(highlightcolor="black")
482 self.Label6.configure(text='''CHOOSE YOUR ROOM''')
483
484 self.Label7 = Label(self.Frame2)
485 self.Label7.place(relx=0.3, rely=0.79, height=48, width=300)
486 self.Label7.configure(activebackground="#ffffff")
487 self.Label7.configure(activeforeground="black")
488 self.Label7.configure(background="#ffffff")
489 self.Label7.configure(disabledforeground="#bfbfbf")
490 self.Label7.configure(font=font14)
491 self.Label7.configure(foreground="#000000")
492 self.Label7.configure(highlightbackground="#ffffff")
493 self.Label7.configure(highlightcolor="black")
494 self.Label7.configure(text='''CHOOSE PAYMENT METHOD''')
495
496 self.Message4 = Message(self.Frame2)
497 self.Message4.place(relx=0.41, rely=0.04, relheight=0.1, relwidth=0.05)
498 self.Message4.configure(background="#ffffff")
499 self.Message4.configure(font=font13)
500 self.Message4.configure(foreground="#000000")
501 self.Message4.configure(highlightbackground="#ffffff")
502 self.Message4.configure(highlightcolor="black")
503 self.Message4.configure(text=''':''')
504 self.Message4.configure(width=46)
505
506 self.Message5 = Message(self.Frame2)
507 self.Message5.place(relx=0.42, rely=0.17, relheight=0.12, relwidth=0.03)
508 self.Message5.configure(background="#ffffff")
509 self.Message5.configure(font=font13)
510 self.Message5.configure(foreground="#000000")
511 self.Message5.configure(highlightbackground="#ffffff")
512 self.Message5.configure(highlightcolor="black")
513 self.Message5.configure(text=''':''')
514 self.Message5.configure(width=26)
515
516 self.Message6 = Message(self.Frame2)
517 self.Message6.place(relx=0.415, rely=0.3, relheight=0.09, relwidth=0.04)
518 self.Message6.configure(background="#ffffff")
519 self.Message6.configure(font=font13)
520 self.Message6.configure(foreground="#000000")
521 self.Message6.configure(highlightbackground="#ffffff")
522 self.Message6.configure(highlightcolor="black")
523 self.Message6.configure(text=''':''')
524 self.Message6.configure(width=36)
525
526 self.Checkbutton1 = Checkbutton(self.Frame2)
527 self.var1 = IntVar()
528 self.Checkbutton1.place(relx=0.15, rely=0.58, relheight=0.17
529 , relwidth=0.14)
530 self.Checkbutton1.configure(activebackground="#ffffff")
531 self.Checkbutton1.configure(activeforeground="#000000")
532 self.Checkbutton1.configure(background="#ffffff")
533 self.Checkbutton1.configure(disabledforeground="#bfbfbf")
534 self.Checkbutton1.configure(font=font14)
535 self.Checkbutton1.configure(foreground="#000000")
536 self.Checkbutton1.configure(highlightbackground="#ffffff")
537 self.Checkbutton1.configure(highlightcolor="black")
538 self.Checkbutton1.configure(justify=LEFT)
539 self.Checkbutton1.configure(text='''DELUXE''')
540 self.Checkbutton1.configure(variable=self.var1)
541
542
543
544
545
546 self.Checkbutton2 = Checkbutton(self.Frame2)
547 self.var2 = IntVar()
548 self.Checkbutton2.place(relx=0.15, rely=0.72, relheight=0.11
549 , relwidth=0.21)
550 self.Checkbutton2.configure(activebackground="#ffffff")
551 self.Checkbutton2.configure(activeforeground="#000000")
552 self.Checkbutton2.configure(background="#ffffff")
553 self.Checkbutton2.configure(disabledforeground="#bfbfbf")
554 self.Checkbutton2.configure(font=font13)
555 self.Checkbutton2.configure(foreground="#000000")
556 self.Checkbutton2.configure(highlightbackground="#ffffff")
557 self.Checkbutton2.configure(highlightcolor="black")
558 self.Checkbutton2.configure(justify=LEFT)
559 self.Checkbutton2.configure(text='''FULL DELUXE''')
560 self.Checkbutton2.configure(variable=self.var2)
561
562 self.Checkbutton3 = Checkbutton(self.Frame2)
563 self.var3 = IntVar()
564 self.Checkbutton3.place(relx=0.5, rely=0.6, relheight=0.11
565 , relwidth=0.16)
566 self.Checkbutton3.configure(activebackground="#ffffff")
567 self.Checkbutton3.configure(activeforeground="#000000")
568 self.Checkbutton3.configure(background="#ffffff")
569 self.Checkbutton3.configure(disabledforeground="#bfbfbf")
570 self.Checkbutton3.configure(font=font13)
571 self.Checkbutton3.configure(foreground="#000000")
572 self.Checkbutton3.configure(highlightbackground="#ffffff")
573 self.Checkbutton3.configure(highlightcolor="black")
574 self.Checkbutton3.configure(justify=LEFT)
575 self.Checkbutton3.configure(text='''GENERAL''')
576 self.Checkbutton3.configure(variable=self.var3)
577
578 self.Checkbutton4 = Checkbutton(self.Frame2)
579 self.var4 = IntVar()
580 self.Checkbutton4.place(relx=0.5, rely=0.71, relheight=0.11
581 , relwidth=0.12)
582 self.Checkbutton4.configure(activebackground="#ffffff")
583 self.Checkbutton4.configure(activeforeground="#000000")
584 self.Checkbutton4.configure(background="#ffffff")
585 self.Checkbutton4.configure(disabledforeground="#bfbfbf")
586 self.Checkbutton4.configure(font=font13)
587 self.Checkbutton4.configure(foreground="#000000")
588 self.Checkbutton4.configure(highlightbackground="#ffffff")
589 self.Checkbutton4.configure(highlightcolor="black")
590 self.Checkbutton4.configure(justify=LEFT)
591 self.Checkbutton4.configure(text='''JOINT''')
592 self.Checkbutton4.configure(variable=self.var4)
593
594 self.Checkbutton5 = Checkbutton(self.Frame2)
595 self.var5 = IntVar()
596 self.Checkbutton5.place(relx=0.485, rely=0.89, relheight=0.1
597 , relwidth=0.3)
598 self.Checkbutton5.configure(activebackground="#ffffff")
599 self.Checkbutton5.configure(activeforeground="#000000")
600 self.Checkbutton5.configure(background="#ffffff")
601 self.Checkbutton5.configure(disabledforeground="#bfbfbf")
602 self.Checkbutton5.configure(font=font16)
603 self.Checkbutton5.configure(foreground="#000000")
604 self.Checkbutton5.configure(highlightbackground="#ffffff")
605 self.Checkbutton5.configure(highlightcolor="black")
606 self.Checkbutton5.configure(justify=LEFT)
607 self.Checkbutton5.configure(text='''By credit/debit card''')
608 self.Checkbutton5.configure(variable=self.var5)
609
610 self.Checkbutton6 = Checkbutton(self.Frame2)
611 self.var6 = IntVar()
612 self.Checkbutton6.place(relx=0.153, rely=0.89, relheight=0.1
613 , relwidth=0.15)
614 self.Checkbutton6.configure(activebackground="#ffffff")
615 self.Checkbutton6.configure(activeforeground="#000000")
616 self.Checkbutton6.configure(background="#ffffff")
617 self.Checkbutton6.configure(disabledforeground="#bfbfbf")
618 self.Checkbutton6.configure(font=font16)
619 self.Checkbutton6.configure(foreground="#000000")
620 self.Checkbutton6.configure(highlightbackground="#ffffff")
621 self.Checkbutton6.configure(highlightcolor="black")
622 self.Checkbutton6.configure(justify=LEFT)
623 self.Checkbutton6.configure(text='''By cash''')
624 self.Checkbutton6.configure(variable=self.var6)
625
626 self.Message7 = Message(self.Frame2)
627 self.Message7.place(relx=0.28, rely=0.46, relheight=0.11, relwidth=0.04)
628 self.Message7.configure(background="#ffffff")
629 self.Message7.configure(font=font15)
630 self.Message7.configure(foreground="#000000")
631 self.Message7.configure(highlightbackground="#ffffff")
632 self.Message7.configure(highlightcolor="black")
633 self.Message7.configure(text='''-''')
634 self.Message7.configure(width=41)
635
636 self.Button1 = Button(self.Frame2)
637 self.Button1.place(relx=0.91, rely=0.05, height=33, width=43)
638 self.Button1.configure(activebackground="#ffffff")
639 self.Button1.configure(activeforeground="#000000")
640 self.Button1.configure(background="#ffffff")
641 self.Button1.configure(disabledforeground="#bfbfbf")
642 self.Button1.configure(foreground="#000000")
643 self.Button1.configure(highlightbackground="#ffffff")
644 self.Button1.configure(highlightcolor="black")
645 self.Button1.configure(pady="0")
646 self.Button1.configure(text='''OK''')
647 self.Button1.configure(command=chk_name)
648
649 self.Button2 = Button(self.Frame2)
650 self.Button2.place(relx=0.91, rely=0.18, height=33, width=43)
651 self.Button2.configure(activebackground="#ffffff")
652 self.Button2.configure(activeforeground="#000000")
653 self.Button2.configure(background="#ffffff")
654 self.Button2.configure(disabledforeground="#bfbfbf")
655 self.Button2.configure(foreground="#000000")
656 self.Button2.configure(highlightbackground="#ffffff")
657 self.Button2.configure(highlightcolor="black")
658 self.Button2.configure(pady="0")
659 self.Button2.configure(text='''OK''')
660 self.Button2.configure(command=chk_add)
661
662 self.Button3 = Button(self.Frame2)
663 self.Button3.place(relx=0.91, rely=0.31, height=33, width=43)
664 self.Button3.configure(activebackground="#ffffff")
665 self.Button3.configure(activeforeground="#000000")
666 self.Button3.configure(background="#ffffff")
667 self.Button3.configure(disabledforeground="#bfbfbf")
668 self.Button3.configure(foreground="#000000")
669 self.Button3.configure(highlightbackground="#ffffff")
670 self.Button3.configure(highlightcolor="black")
671 self.Button3.configure(pady="0")
672 self.Button3.configure(text='''OK''')
673 self.Button3.configure(command=chk_mo)
674
675 self.Button4 = Button(self.Frame2)
676 self.Button4.place(relx=0.76, rely=0.66, height=83, width=156)
677 self.Button4.configure(activebackground="#ffffff")
678 self.Button4.configure(activeforeground="#000000")
679 self.Button4.configure(background="#ffffff")
680 self.Button4.configure(disabledforeground="#bfbfbf")
681 self.Button4.configure(font=font16)
682 self.Button4.configure(foreground="#000000")
683 self.Button4.configure(highlightbackground="#ffffff")
684 self.Button4.configure(highlightcolor="black")
685 self.Button4.configure(pady="0")
686 self.Button4.configure(text='''SUBMIT''')
687 self.Button4.configure(command=submit_clicked)
688
689 self.Label1 = Label(self.Frame2)
690 self.Label1.place(relx=0.05, rely=0.43, height=44, width=260)
691 self.Label1.configure(background="#ffffff")
692 self.Label1.configure(disabledforeground="#bfbfbf")
693 self.Label1.configure(font=font13)
694 self.Label1.configure(foreground="#000000")
695 self.Label1.configure(text='''NUMBER OF DAYS''')
696
697
698 self.Entry1 = Entry(self.Frame2)
699 self.days=StringVar()
700 self.Entry1.place(relx=0.47, rely=0.43, height=34, relwidth=0.43)
701 self.Entry1.configure(background="white")
702 self.Entry1.configure(disabledforeground="#bfbfbf")
703 self.Entry1.configure(font=font10)
704 self.Entry1.configure(foreground="#000000")
705 self.Entry1.configure(insertbackground="black")
706 self.Entry1.configure(width=424)
707 self.Entry1.configure(textvariable=self.days)
708
709 self.Message8 = Message(self.Frame2)
710 self.Message8.place(relx=0.42, rely=0.41, relheight=0.11, relwidth=0.03)
711 self.Message8.configure(background="#ffffff")
712 self.Message8.configure(font=font13)
713 self.Message8.configure(foreground="#000000")
714 self.Message8.configure(highlightbackground="#ffffff")
715 self.Message8.configure(highlightcolor="black")
716 self.Message8.configure(text=''':''')
717 self.Message8.configure(width=26)
718
719 self.Button5 = Button(self.Frame2)
720 self.Button5.place(relx=0.91, rely=0.43, height=33, width=43)
721 self.Button5.configure(activebackground="#ffffff")
722 self.Button5.configure(activeforeground="#000000")
723 self.Button5.configure(background="#ffffff")
724 self.Button5.configure(disabledforeground="#bfbfbf")
725 self.Button5.configure(foreground="#000000")
726 self.Button5.configure(highlightbackground="#ffffff")
727 self.Button5.configure(highlightcolor="black")
728 self.Button5.configure(pady="0")
729 self.Button5.configure(text='''OK''')
730 self.Button5.configure(command=chk_day)
731
732
733 root.mainloop()
734
735
736 if __name__ == '__main__':
737 hotel=HOTEL_MANGMENT_checkin()